package com.zpb.portal.controller;

import com.zpb.framework.annotation.SysLog;
import com.zpb.framework.domain.ApiResult;
import com.zpb.framework.domain.entity.Link;
import com.zpb.framework.domain.vo.LinkVo;
import com.zpb.framework.service.LinkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


/**
 * @Description:
 * @Author: zhaopengbo
 * @Date: 2025/9/10
 */
@RestController
@RequestMapping("/link")
public class LinkController {
    @Autowired
    private LinkService linkService;
    @GetMapping("/getAllLink")
    @SysLog(businessName = "获取全部友链")
    public ApiResult<List<LinkVo>> getAllLink(Link link) {
        return linkService.getAllLink(link);
    }
}
